package com.shigu.searchWord.api;

import com.opentae.data.mall.beans.KeywordView;
import com.shigu.PageResponse;
import com.shigu.exceptions.AdminException;
import com.shigu.searchWord.vo.IndexHotSearchWordList;
import com.shigu.searchWord.vo.KeywordResponseVo;

/**
 * @Author:         沐风
 * @Descirption     关键词服务
 * @CreateDate:     2019/8/30 4:20 PM
 */
public interface KeywordsService {

    //wapsjson

    /**
     * @author      沐风
     * @Descirption 获取大家都在看的关键词内容
     * @date        2019/8/30 4:26 PM
     */
    PageResponse<KeywordResponseVo> getHotWordList();

    //adminjson

    /**
     * @author      沐风
     * @Descirption 添加或修改社搜关键词信息(hotWordId为null是新增，反之则为修改)
     * @date        2019/8/31 10:59 AM
     * @param hotWordId 关键词id
     * @param hotKeyword 关键词
     * @param weight 权重
     * @param colorVal 颜色值
     */
    void setOrUpdateHotWord(Long hotWordId,String hotKeyword,String weight,String colorVal) throws AdminException;

    /**
     * @author      沐风
     * @Descirption 获取热搜词信息
     * @date        2019/8/31 11:25 AM
     */
    PageResponse<IndexHotSearchWordList> getIndexHotSearchWord();

    /**
     * @author      沐风
     * @Descirption 删除热搜词
     * @param hotWordId 热搜词id
     * @date        2019/8/31 11:32 AM
     */
    void deleteIndexHotSearchWord(Long hotWordId) throws AdminException;

}
